using StudentVideo.Shared.Enums;

namespace StudentVideo.Shared.Components.CuForm;

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class CuFormMateSelectAttribute: Attribute {
   /// <summary>
   /// 选择列表 - 枚举
   /// </summary>
   public Type? SelectType { get; set; }

   /// <summary>
   /// 选择列表 - 请求地址
   /// </summary>
   public string? SelectUri { get; set; }

   public CuFormMateSelectAttribute(string uri) {
      SelectUri = uri;
   }

   public CuFormMateSelectAttribute(Type type) {
      SelectType = type;
   }
}
